
$(function() {
    $("#formFiltroRankingBleu").submit(function(e) {

        //prevent Default functionality
        e.preventDefault();
        $('#loading').css('visibility', 'visible');

        //do your own request an handle the results
        $.ajax({
            url: 'fuentes/controller/BleuRankingVisitas.php',
            type: 'POST',
            data: 'filtrar=filtrar&'+$("#formFiltroRankingBleu").serialize(),
            success: function(data) {
                $('#content-load').html(data);
                $(".modal-backdrop").hide();
                $('body').removeClass('modal-open');
                $('.modal-backdrop').remove();
                $('#filtroRankingBleu').modal('hide');
            }
        });
        $('#loading').css('visibility', 'hidden');
    });
});